<template>
  <div class="">
    <a class="dc-user" target="_blank" v-if="isShow" :href="`dchat://im/start_conversation?name=${$attrs.name}`"
      >{{ $attrs.name }} <img :src="config.dcImg" alt=""
    /></a>
  </div>
</template>

<script>
export default {
  name: "dcUser",
  props: {},
  components: {},
  data() {
    return {};
  },
  computed: {
    isShow() {
      if (this.$attrs.name == "\u0000") return false;
      return this.$attrs.name ? true : false;
    },
  },
  mounted() {},
  methods: {},
  watch: {},
};
</script>
<style lang="scss" scoped>
//@import url(); 引入公共css类
.dc-user {
  display: flex;
  color: #606266 !important;
  font-size: 12px;
  img {
    width: 15px;
    margin-left: 3px;
  }
}
</style>
